<%--
  Created by IntelliJ IDEA.
  User: Phillip
  Date: 2014/5/7
  Time: 20:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>FLight Booking Centre</title>
</head>
<body>
<H1 align="center">
    FLight Booking Centre
</H1>
<br>
<br>
<%
    if (request.getAttribute("isRegSuc") != null && !(boolean) request.getAttribute("isRegSuc"))
        out.println("<div align=\"center\" style=\"color:red\">Register failed, pleas try again!</div>");
%>
<form method="POST" action="/Register">
    <TABLE align="center">
        <TR>
            <TD>
                Username:
            </TD>
            <TD>
                <input type="text" name="username">
            </TD>
        </TR>
        <TR>
            <TD>
                Password:
            </TD>
            <TD>
                <input type="password" name="password">
            </TD>
        </TR>
        <TR>
            <TD>
                Name:
            </TD>
            <TD>
                <input type="text" name="name">
            </TD>
        </TR>
        <TR>
            <TD>
                Credit:
            </TD>
            <TD>
                <input type="text" name="credit">
            </TD>
        </TR>
        <TR>
            <TD>
                Mobile:
            </TD>
            <TD>
                <input type="text" name="mobile">
            </TD>
        </TR>
        <TR>
            <TD>
                Email:
            </TD>
            <TD>
                <input type="text" name="email">
            </TD>
        </TR>
    </TABLE>
    <div align="center">
        <input type="submit" value="SUBMIT"><input type="reset" value="RESET">
    </div>

</form>


</body>
</html>
